package com.example.main.net

import com.example.lib_base.entity.AnnouncementBean
import com.example.lib_base.entity.RegisterBean
import com.example.lib_base.mvvm.Res
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface APiSeevice {
    @GET("/api/announcements")
    suspend fun getAnnouncements(@Query("page")page:Int, @Query("size")size:Int): Res<AnnouncementBean>
    @POST("/api/user/register")
    suspend fun getRegister(@Query("username")username:String,@Query("password")password:String):Res<RegisterBean>
}